/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dbHandler;

/**
 *
 * @author Rick
 */
public class DatbaseDriver {

    static FamiliesDAO familiesDAO;
    static GivesToDAO givesToDAO;
    static MinistryGroupDAO ministryGroupDAO;
    static ParishionersDAO parishionersDAO;
    static PledgesDAO pledgesDAO;
    static ContactInfoDAO contactInfoDAO;

    public static void main(String[] args){
        //create the required DAO factory
        DAOfactory derbyFactory =
                DAOfactory.getDAOfactory(DAOfactory.DERBY);

        //create DAO
        familiesDAO = derbyFactory.getFamiliesDAO();
        givesToDAO = derbyFactory.getGivesToDAO();
        ministryGroupDAO = derbyFactory.getMinistryGroupDAO();
        parishionersDAO = derbyFactory.getParishionersDAO();
        pledgesDAO = derbyFactory.getPledgesDAO();
        contactInfoDAO = derbyFactory.getContactInfoDAO();

    }


}
